home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
livebox
/
Livebox 2.0 TPSA installation application vRC3_08.09.2010.iso
/
CK_animations
/
pl
/
adsl
/
anim01.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2009-11-05
|
1KB
|
46 lines
this.survolplay.gotoAndStop(2);
curseur_init = 113;
curseur_fin = 638;
taille_barre = curseur_fin - curseur_init;
nombreframes = this._totalframes;
revenir_btn.onRelease = function()
{
gotoAndPlay(1);
survolplay.gotoAndStop(2);
survolpause.gotoAndStop(1);
};
btplay.onRelease = function()
{
play();
survolplay.gotoAndStop(2);
survolpause.gotoAndStop(1);
};
btpause.onRelease = function()
{
stop();
survolpause.gotoAndStop(2);
survolplay.gotoAndStop(1);
};
curseur.onPress = function()
{
stop();
delete this.onEnterFrame;
survolpause.gotoAndStop(2);
survolplay.gotoAndStop(1);
startDrag(this,1,curseur_init,this._y,curseur_fin,this._y);
this._parent.onEnterFrame = function()
{
destination = Math.floor(nombreframes * (curseur._x - curseur_init) / taille_barre);
gotoAndStop(destination);
};
};
curseur.onRelease = curseur.onReleaseOutside = function()
{
stopDrag();
delete this._parent.onEnterFrame;
this.onEnterFrame = function()
{
this._x = curseur_init + barre_orange._width - 5;
};
};